package com.mes.controller;


/**
 * @BelongsPackage: com.mes.controller
 * @Author: 源源瞬转
 * @CreateTime: 2024-10-10  14:51
 * @Description TODO:
 */

import com.mes.entity.WmsMaterialInfo;
import com.mes.service.WmsMaterialInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/WmsMaterialInfoController")
@RestController
public class WmsMaterialInfoController {
    @Autowired
    private WmsMaterialInfoService wmsMaterialInfoService;

    @GetMapping("/listByType")
    public List<WmsMaterialInfo> listByType(String type) {
        List<WmsMaterialInfo> list = wmsMaterialInfoService.WmsMaterialInfoList(type);
        return list;
    }

}
